<?php include 'menu.php'; ?>
<?php foreach($rows as $r):?>
	<div class='book'>
		<div class="cover">
			<a href="/?act=view&book=<?=$r['id']?>"><img src="<?=_cfg('img_cover');?><?=$r['id']?>.jpg" /></a>
		</div>
		<div class="content">
			<div class="book_title"><b><a href="/?act=view&book=<?=$r['id']?>"><?=$r['title']?></a></b></div>
			<div class="year"><b>Год:</b> <?=$r['year']?></div>
			<div class="author"><b>Автор:</b> <?=$r['author']?></div>
			<div class="desc"><b>Описание:</b> <?=$r['description']?></div>
		</div>
	</div>
<?php endforeach;?>
<?php include("tpl/pager.php");?>